<?php
/**
 * Created by PhpStorm.
 * User: R.Ice
 * Date: 2018/8/23
 * Time: 11:03
 * name:新增班级学员
 * url:/erpSchoolClass/add_class_student
 */

$ocs_osid  = $route->bodyParams['ocs_osid'];   //学生ID
$ocs_oscid = $route->bodyParams['ocs_oscid'];  //班级ID
$ocs_type  = $route->bodyParams['ocs_type'];   //类型 0-正式 1-试听
$ocs_ocid  = $route->bodyParams['ocs_ocid'];   //课程id
$ocs_temporary = $route->bodyParams['ocs_temporary'];   //课程id

//写入数组
$insertArr = [
    'ocs_osid'         =>$ocs_osid,
    'ocs_oscid'        =>$ocs_oscid,
    'ocs_type'         =>$ocs_type,
    'ocs_ocid'         =>$ocs_ocid,
    'ocs_temporary'    =>$ocs_temporary,
    'ocs_create_time'  =>time(),
];
//执行写入语句
$rsData = $db->mysqlDB->insert("oa_class_student",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );